<?php

include_once("ID3Mapper.class.php");

if (isset($_POST["public"])) {
    $mapper = new ID3Mapper();  
    $id3 = ID3Mapper::findById($_POST["id_song"]);
    $id3->set_public($_POST["public"]);
    $mapper->update($id3);
}

?>
